<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="胡爱静">
    <title>图片切换</title>
    <style>
       body{
           margin: 0；
       }
       *{
           box-sizing: border-box;
       }
       ul{
           margin: 0;
           padding: 0;
           list-style: none;
       }
       .box{
           width: 240px;
           margin: 0 auto;
           border: 1px solid lightgray;
       }
       .top{
           width: 100%;
           height: 40px;
           background-color: lightgray;
           text-align: center;
           line-height: 40px;
           font-size: 18px;
       }
       
    .box-list li{
        width: 220px; 
        height: 180px;
        margin: 10px;
        border: 1px solid lightgray;
        position: relative;
        overflow: hidden;
    }
    .box-list li img{
        width: 220px;
        height: 180px;
    }
    .box-list li .imgs{
        width: 440px;
        position: absolute;
        top: 0;
        left: 0;
        display: flex; 
    }
    .info{
      width: 220px;
      padding-left: 20px;
      height: 30px;
      line-height: 30px;
      background-color: orange;
      color: white;
      position: absolute;
    } 
    .down{
        bottom: -2px;
    }
    .up{
        bottom: -42px;
    }  


    </style>
</head>
<body>
   
    <div class="box">
        <div class="top">专辑推荐</div>
        <ul class="box-list">
            <li>
              <div class="imgs">
                <img src="img/1_1.jpg" alt="">
                <img src="img/1_2.jpg" alt="">
              </div>
               <div class="info down">COCOON 可可西尼</div>
              <div class="info up">几何为网-极致灿烂</div> 
            </li>
            <li>
              <div class="imgs">
                <img src="img/2_1.jpg" alt="">
                <img src="img/2_2.jpg" alt="">
              </div>
               <div class="info down">INSUN 恩裳</div>
              <div class="info up">2013春印象</div> 
            </li>
            <li>
              <div class="imgs">
                <img src="img/3_1.jpg" alt="">
                <img src="img/3_2.jpg" alt="">
              </div>
               <div class="info down">JNBY/ 江南布衣</div>
              <div class="info up">NANMENG 南梦</div> 
            </li>
        </ul>
    </div>

    <script src="jquery.js"></script>
</body>
</html>
<script>
    $('li').hover(function(){
         $(this).find('.imgs').stop().animate({'left':'-220px'},500);
         $(this).find('.down').stop().animate({'bottom':'-42px'},500);
         $(this).find('.up').stop().animate({'bottom':'-2px'},500);
    },function(){
         $(this).find('.imgs').stop().animate({'left':'0px'},500);
         $(this).find('.down').stop().animate({'bottom':'-2px'},500);
         $(this).find('.up').stop().animate({'bottom':'-42px'},500);
    });







</script>